package com.ljy.my_study.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/** 
* @author James
* @date 2018年4月3日 
*/
@RestController
public class HelloWorldController {
	
	@RequestMapping(value="/hello_world")
	public String helloWorld(HttpServletRequest req) {
		System.out.println("123");
		return "hello world!";
	}
	
	@RequestMapping(value="/hello_world2")
	public String helloWorld2(HttpServletRequest req) {
		System.out.println("helloWorld2");
		return helloWorld(req);
	}
}
